package com.xfreelance.qcshop;

import com.xfreelance.qcshop.entity.User;
import com.xfreelance.qcshop.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.List;

@SpringBootApplication
public class QcshopApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(QcshopApplication.class, args);
//        UserMapper userMapper = run.getBean("userMapper", UserMapper.class);
//        System.out.println(("----- selectAll method test ------"));
//        List<User> userList = userMapper.selectList(null);
//        for(User user:userList) {
//            System.out.println(user);
//        }

    }



}
